Menu Commands > The menu command API > setMenuText() |
![]() ![]() ![]() |
Description
Specifies the text that should appear in the menu.
Note: Do not use this function if you are using getDynamicContent()
.
Arguments
{arg1}
, {arg2}
,...{argN}
If the arguments
attribute is defined for a menuitem
tag, the value of that attribute is passed to the setMenuText()
function (and to the canAcceptCommand()
, isCommandChecked()
, and receiveArguments()
functions) as one or more arguments. The arguments
attribute is useful for distinguishing between two menu items that call the same menu command.
Returns
The string that should appear in the menu.
![]() ![]() ![]() |